package com.xiumu.hazelcastmodel.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;

@Data
@Entity
public class User implements Serializable {
    @Id
    private Long id;           //主键
    private String username;   //用户名
    private String password;   //密码
    private String nickname;   //昵称
    private boolean enabled;   //启用或禁用

    @Transient
    private List<Role> roles;  //角色，暂时不用

    private String email;      //邮箱
    private String userface;   //头像
    private Timestamp regTime; //注册时间
}
